package com.gobo.jinghuimall.cart.feign;

import com.gobo.common.utils.R;
import com.gobo.common.vo.SkuInfoEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
//TODO
@FeignClient(value = "jinghuimall-product")
public interface ProductFeignService {

    @GetMapping("/product/skuinfo/getSku")
    SkuInfoEntity getSkuInfo(@RequestParam("skuId") Long skuId);

    @GetMapping("/product/productattrvalue/getSaleAttr")
    List<String> getSaleAttr(@RequestParam("skuId") Long skuId);
}
